package com.anda.driver.locator;

import android.location.Location;
import android.os.AsyncTask;
import android.os.Bundle;

public class QueryFreightSourceActivity extends WebViewActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mWebView.loadUrl("file:///android_asset/query-freight-source.html");
		new TestAsyncTask().executeOnExecutor( AsyncTask.THREAD_POOL_EXECUTOR,new Object[]{});
	}
	
	class TestAsyncTask extends AsyncTask{
		@Override
		protected Object doInBackground(Object... params) {
			Location loc = new Location("test");
			loc.setLatitude(24.97445);
			loc.setLongitude(102.76503499999998);
			//LocationInfo li = TelephonyUtil.getLocationByGaode(loc, QueryFreightSourceActivity.this);
//			String s = SerializeTool.object2String(li);
//			Constant.debug("-----serialize result: [" + s +"]" );
//			Constant.debug("-----final result: [" + Constant.encode(s) +"]" );
			return null;
		}
		
	}
}
